<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>轴向旋转</title>
  <style>
    div {
      width: 300px;
      height: 200px;
      background-color: lightblue;
      margin: 0 auto;
      perspective: 500px;
    }

    div:hover {
      /* 围绕x轴 */
      transform: rotateX(45deg);
    }
  </style>
</head>

<body>
  <div>aaa</div>

</body>

</html>